package com.lagou.task10.test;

/**
 * 用户信息类
 */
public class UserInfo {

    private int talkTime;//通话时长

    private int netFlow;//上网流量

    private double balance;//消费金额

    public int getTalkTime() {
        return talkTime;
    }

    public void setTalkTime(int talkTime) {
        this.talkTime = talkTime;
    }

    public int getNetFlow() {
        return netFlow;
    }

    public void setNetFlow(int netFlow) {
        this.netFlow = netFlow;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public UserInfo() {
    }

    public UserInfo(int talkTime, int netFlow, double balance) {
        this.talkTime = talkTime;
        this.netFlow = netFlow;
        this.balance = balance;
    }

    public void show(){
        System.out.println("通话时长共："+getTalkTime()+"分钟，上网流量为："+getNetFlow()+"GB,消费金额为："+getBalance()+"RMB");
    }
}
